package com.akk.module.avs.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

@ApiModel(value = "贷款申请对象",description = "用户申请信息")
public class AvsYbLoanUser {
    private Long loanUserId;

    @NotBlank(message = "身份证号不能为空")
    @ApiModelProperty(value = "身份证号码")
    private String idCard;

    @NotBlank(message = "姓名不能为空")
    @ApiModelProperty(value = "姓名")
    private String username;

    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @NotBlank(message = "地址不能为空")
    @ApiModelProperty(value = "所在地")
    private String address;

    @NotBlank(message = "所在城市不能为空")
    @ApiModelProperty(value = "所在城市")
    private String city;

    @NotBlank(message = "单位名称不能为空")
    @ApiModelProperty(value = "单位名称")
    private String companyName;

    @NotBlank(message = "单位地址不能为空")
    @ApiModelProperty(value = "单位地址")
    private String companyAddress;

    public Long getLoanUserId() {
        return loanUserId;
    }

    public void setLoanUserId(Long loanUserId) {
        this.loanUserId = loanUserId;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard == null ? null : idCard.trim();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName == null ? null : companyName.trim();
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress == null ? null : companyAddress.trim();
    }
}